package bdz.projects.cbt.events
{
	import flash.events.Event;

	public class CBTGameEvent extends Event{
		
		public static const LOCATION_CHANGE:String = "locationChanged";
		public static const ITEM_BOUGHT:String = "itemBought";
		public static const ITEM_SOLD:String = "itemSold";
		public static const PAYPAL_TRANSACT:String = "paypalTransact";
	
		public static const MONEY_STOLEN:String = "moneyStolen";
		public static const PRODUCT_REALLY_CHEAP:String = "productReallyCheap";
		public static const PRODUCT_REALLY_EXPENSIVE:String = "productReallyExpensive";
		public static const DAY_CHANGE:String = "dayChange";
		public static const MORTGAGE_CHANGE:String = "mortgageChange";
		public static const ADD_FEEDBACK:String = "addFeedback";
		public static const INVENTORY_CHANGED:String = "inventoryChanged";
		public static const WAREHOUSE_UPGRADE:String = "warehouseUpgrade";
		public static const PRODUCTS_REFRESHED:String = "productsRefreshed";
		
		public static const GAME_STARTED:String = "gameStarted";
		public static const GAME_CHANGE:String = "gameChange";
		public static const GAME_ENDED:String = "gameEnded";
		public static const GAME_RESET:String = "gameReset";
		public static const GAME_FINALIZED:String = "gameFinalized";
		public var data:*;
		
		public function CBTGameEvent(type:String, info:*=null, bubbles:Boolean=false, cancelable:Boolean=false) {
			data = info;
			super(type, bubbles, cancelable);
		}
		override public function clone():Event {
			return new CBTGameEvent(type, data, bubbles, cancelable);
		}
		
	}
}